package Fecse;

public class StudentR {
    //封装
    private int age;
    public void setAge(int i){
        if (i<0 ){
            System.out.println("Wrong number of age!");
            return ;
        }
        age=i;
    }
    public int getAge(){
        return age;
    }
}
